home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / CD32 / CD32-Tools / cdmpeg-110 / Include / debugson.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-10  |  782 b   |  60 lines

  1.  
  2. #ifdef  D
  3.  #undef D
  4. #endif
  5.  
  6. #ifdef  P
  7.  #undef P
  8. #endif
  9.  
  10. #ifdef  Q
  11.  #undef Q
  12. #endif
  13.  
  14. #ifdef    X
  15.  #undef    X
  16. #endif
  17.  
  18. #ifdef  PD
  19.  #undef PD
  20. #endif
  21.  
  22. #ifdef  PF
  23.  #undef PF
  24. #endif
  25.  
  26. #ifdef  PP
  27.  #undef PP
  28. #endif
  29.  
  30. #ifdef  PRINTF
  31.  #undef PRINTF
  32. #endif
  33.  
  34. #ifdef KPRINTF
  35.  #define    PRINTF  kprintf
  36. #else
  37.  #define    PRINTF  printf
  38. #endif
  39.  
  40. #define D(x)    {x;};
  41. #define Q(x)    {x;fflush(stdout);pause();}
  42. #define P(x)    {PRINTF("%ls",x);};
  43. #define PF(x)   {PRINTF("%ls\n",x);};
  44. #define PD(x,y) {PRINTF("%ls Delay ...\n",x);Delay(y);};
  45. #define PP(x)   {PRINTF("%ls\n",x);pause();};
  46. #define    X()        {PRINTF("%ls @ %ld\n", __FILE__, __LINE__ );}
  47.  
  48. #ifndef DEBUG
  49. #define DEBUG
  50. #endif
  51.  
  52. #ifndef DEBUG_UTILS
  53. #define DEBUG_UTILS
  54.  
  55. #define    PFSTRING    "*no*string*"
  56. #define PFSTR(x) ((x) ? x : PFSTRING)
  57.  
  58. #endif
  59.  
  60.